const express = require('express');
const app = express();
const bodyParser = require('body-parser');

app.use(express.static('public'))

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
    extended: false
}));

app.use('/auth', require('./routes/auth'))

app.use('/list', require('./routes/list'))

app.use('/object', require('./routes/object'))

app.listen(4000, () => {
    console.log('server running')
})